from config.config import MAJOR_API_URL, HEADERS


def fetch_all_major_data(session):
    request_body = {}
    response = session.post(
        MAJOR_API_URL,
        headers=HEADERS,
        json=request_body
    )
    if response.status_code == 200:
        response_data = response.json()
        return response_data
    return None
